#ifndef YOOHOO_XMPPCORE_PEERCERTIFICATEINFO_H
#define YOOHOO_XMPPCORE_PEERCERTIFICATEINFO_H

#include "xmppcore/export.h"

#include <QtCrypto>

namespace yoohoo_xmppcore {

class YOOHOO_XMPPCORE_EXPORT PeerCertificateInfo : QObject {
	Q_OBJECT

public:
	PeerCertificateInfo(QCA::TLS::IdentityResult* identityResult, QCA::Validity* validity,
		QCA::CertificateChain* certificateChain) : _identityResult(identityResult),
		_validity(validity), _certificateChain(certificateChain) {
	}
	QCA::Validity* validity() {
		return _validity;
	}
	QCA::TLS::IdentityResult* identityResult() {
		return _identityResult;
	}
	QCA::CertificateChain* certificateChain() {
		return _certificateChain;
	}

private:
	QCA::TLS::IdentityResult* _identityResult;
	QCA::Validity* _validity;
	QCA::CertificateChain* _certificateChain;
};

}

#endif
